﻿<base:BaseNavigationPage 
           x:Class="WebSiteAdminTool.UI.Views.Security.AccessRules.AccessRuleManagement" 
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:base="clr-namespace:WebSiteAdminTool.UI.Views.Base"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="Role Management">
    <UserControl.Resources>
        <!--<viewModels:MainViewModel x:Key="MainViewModel"/>-->
    </UserControl.Resources>
    <Grid  x:Name="LayoutRoot" Style="{StaticResource PageLayoutStyle}">
        <StackPanel>
            <!--DataContext="{StaticResource MainViewModel}"-->
            <TextBlock Style="{StaticResource PageNotesStyle}">
                <Run>You can optionally add access rules to control access to the whole Web site or to individual folders. Rules can apply to specific users and roles, to all users, to anonymous users, or to some combination of these. Rules apply to subfolders.</Run>
            </TextBlock>
            <StackPanel x:Name="RolesListContainer">
                <sdk:Label Style="{StaticResource PageSectionHeader}">Select a directory for this rule</sdk:Label>
                <sdk:DataGrid Style="{StaticResource ItemsGridStyle}" ItemsSource="{Binding Employees}">
                    <sdk:DataGrid.Columns>
                        <sdk:DataGridTextColumn CanUserReorder="True" CanUserResize="True" CanUserSort="True" Header="Role Name" Width="Auto" />
                        <sdk:DataGridTextColumn CanUserReorder="True" CanUserResize="True" CanUserSort="True" Header="Users" Width="Auto" />
                        <sdk:DataGridTextColumn CanUserReorder="True" CanUserResize="True" CanUserSort="True" Header="Description" Width="Auto" />
                    </sdk:DataGrid.Columns>
                </sdk:DataGrid>
            </StackPanel>
        </StackPanel>
    </Grid>
</base:BaseNavigationPage>
